<%= form_tag({:controller => 'videos',:action => 'create'}, :multipart => true) do %>
	Choose Event:<br>
	<div>
		<select name="video[event_id]" >
			<% @event.each do |event| %>
				<option value= <%= event.id %> > <%= event.title %></option>
			<% end %>
		</select>	
	</div>
  <div>
  	Title:<br>
	<input type="text" name="video[title]">
  </div>
  Choose status:<br>
  <div>
		<select name="video[video_status_id]" >
			<% @video_statuses.each do |status| %>
				<option value= <%= status.id %> > <%= status.name %></option>
			<% end %>
		</select>	
	</div>
  <div>
  	Path:<br>
	<input type="text" name="video[path]">
  </div>
  <div>
	<p><label for="upload_file">Select File:</label><br>
	<%= file_field 'upload','datafile' %></p>
  </div>
  <div class="actions">
		<%= submit_tag "Create" %>
  </div>
<% end %>
